<html>  
   <head>  
          <meta charset="utf-8"/>  
          <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>  
          <title>Hello H5+</title>  
          <script type="text/javascript">  
var pusher = null;  
// H5 plus事件处理  
function plusReady(){  
   // 创建直播推流控件  
   pusher = new plus.video.LivePusher('pusher',{url:'rtmp://106.12.40.120:1935/stream/123456'});  
   // 监听状态变化事件  
   pusher.addEventListener('statechange', function(e){  
          console.log('statechange: '+JSON.stringify(e));  
   }, false);  
}  
document.addEventListener('plusready', plusReady, false);  
          </script>  
   </head>  
   <body>  
          <br/>  
          <div id="pusher" style="width:300px;height:400px;background-color:#000000;margin:auto"></div>  
   </body>  
</html>